4bde481db2779181e08655f1fb1e98a44fb3051a,src/test/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/viewmodel/JobViewTest.java,JobViewTest,should_know_if_a_failing_build_has_been_claimed,#,460
Before Change
String ourPotentialHero = "Adam",
theReason = "I broke it, sorry, fixing now";
view = JobView.of(
a(job().whereTheLast(build().finishedWith(FAILURE).andWasClaimedBy(ourPotentialHero, theReason))),
withDefaultConfig(),
augmentedWith(Claim.class)
);
assertThat(view.isClaimed(), is(true));
assertThat(view.claimAuthor(), is(ourPotentialHero));
After Change
String ourPotentialHero = "Adam",
theReason = "I broke it, sorry, fixing now";
view = a(jobView().of(
a(job().whereTheLast(build().finishedWith(FAILURE).and().wasClaimedBy(ourPotentialHero, theReason))))
.augmented(with(Claim.class)));
assertThat(view.isClaimed(), is(true));
assertThat(view.claimAuthor(), is(ourPotentialHero));